﻿using Castle.ActiveRecord;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TES.Domain
{
    /// <summary>
    /// 系部
    /// </summary>
    [ActiveRecord("Department")]
    public class Department:EntityBase
    {
        [Property(NotNull = true, Length = 50)]
        [Required(ErrorMessage = "不能为空")]
        [StringLength(50, ErrorMessage = "不能超过50个字符")]
        [Display(Name = "系部名称")]
        public virtual string DepartmentName { get; set; }

        [Property(NotNull = true, Length = 50)]
        [Required(ErrorMessage = "不能为空")]
        [StringLength(50, ErrorMessage = "不能超过50个字符")]
        [Display(Name = "系部代码")]
        public virtual string DepartmentNumber { get; set; }
    }
}
